package com.zh.common.plugins.shiro.JwtToken;

import org.apache.shiro.authc.AuthenticationToken;

/**
 *
 * @ProjectName:
 * @Package:        com.zh.common.plugins.shiro.JwtToken
 * @ClassName:      JWTToken
 * @Description:    主要用于接收token
 * @Author:         lds
 * @CreateDate:     2019/5/22 0022 19:01
 * @UpdateUser:     更新者
 * @UpdateDate:     2019/5/22 0022 19:01
 * @UpdateRemark:   更新内容
 * @Version:        1.0
 */
public class JWTToken implements AuthenticationToken {
    // 密钥
    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
